package imper.graphic.listener;

import imper.graphic.view.EnumView;

import org.newdawn.slick.state.StateBasedGame;
import org.newdawn.slick.state.transition.EmptyTransition;

public class ChangeViewListener implements Runnable
{
	protected EnumView _EnumView;
	protected StateBasedGame _StateBasedGame;

	public ChangeViewListener(EnumView _EnumView, StateBasedGame pStateBasedGame)
	{
		this._EnumView = _EnumView;
		this._StateBasedGame = pStateBasedGame;
	}

	@Override
	public void run()
	{
		_StateBasedGame.enterState(_EnumView.getId(), new EmptyTransition(), new EmptyTransition());
	}

}
